package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 配送地址
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.ShippingAddress")
@Data
@TableName(value = "shipping_address")
public class ShippingAddress {
    /**
     * 地址id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "地址id")
    private Long id;

    /**
     * 购物者id
     */
    @TableField(value = "buyer_id")
    @ApiModelProperty(value = "购物者id")
    private Long buyerId;

    /**
     * 收货人姓名
     */
    @TableField(value = "username")
    @ApiModelProperty(value = "收货人姓名")
    private String username;

    /**
     * 收货地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "收货地址")
    private String address;

    /**
     * 收货人手机号
     */
    @TableField(value = "mobile")
    @ApiModelProperty(value = "收货人手机号")
    private String mobile;

    /**
     * 备注
     */
    @TableField(value = "comment")
    @ApiModelProperty(value = "备注")
    private String comment;

    /**
     * 1:默认地址
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "1:默认地址")
    private Integer type;

    /**
     * 地址代码
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "地址代码")
    private Integer code;

    /**
     * 邮编
     */
    @TableField(value = "tel")
    @ApiModelProperty(value = "邮编")
    private String tel;
}
